<template>
  <div class="container">
    <div class="textBox">
      <div class="mainTitle">ModernWMS</div>
      <div class="subTitle">{{ i18n.global.t('homepage.subTitle') }}</div>
    </div>
    <div class="content">
      <div class="lottieBox">
        <lottie :src="dataJson"></lottie>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import lottie from '@/components/lottie.vue'
import dataJson from '@/assets/warehouse.json'
import i18n from '@/languages/i18n'
</script>

<style scoped lang="less">
.container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  align-items: center;
}

.content {
  width: 60%;
}

.textBox {
  width: 100%;
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%, 0);
  letter-spacing: 5px;
  z-index: 999;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.mainTitle {
  display: flex;
  justify-content: center;
  width: 100%;
  color: #9c27b0;
  font-weight: bold;
  font-size: 120px;
}

.subTitle {
  display: flex;
  justify-content: center;
  width: 100%;
  font-size: 30px;
  letter-spacing: 5px;
  color: #c9a7cf;
}

.lottieBox {
  min-width: 100%;
  max-width: 100%;
}
</style>
